package com.lottery.service;

import com.lottery.dao.SpecialNumberDao;
import com.lottery.pojo.TableSpecialNumbers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SpecialNumberService {

    @Autowired
    private SpecialNumberDao specialNumberDao;

    public List<TableSpecialNumbers> getSpecialNumbers() {
        return specialNumberDao.getSpecialNumbers();
    }

    public void deleteSpecialNumber(long id) {
        specialNumberDao.deleteSpecialNumber(id);
    }

    public void addSpecialNumber(TableSpecialNumbers specialNumbers) {
        specialNumberDao.addSpecialNumber(specialNumbers);
    }
}
